package com.test.action;

import java.io.InputStream;

import org.apache.commons.fileupload.servlet.ServletRequestContext;
import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class DownloadAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5850485217440357293L;

	public InputStream getDownloadFile(){
		
		return ServletActionContext.getServletContext().getResourceAsStream("/upload/Struts2.ppt");
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return SUCCESS;
	}
}
